Ext.require([
    'Ext.tree.*',
    'Ext.data.*',
    'Ext.Msg.*',
    'Ext.window.MessageBox'
]);

Ext.define('passport.trees.Menu', {
    extend: 'Ext.tree.Panel',
    		alias: 'widget.menuTree',
    		renderTo: Ext.getBody(),
		    width: '100%',
		    bodyBorder: false,
		    border:0,
		    listeners: {
		        click: function(node, e) {
		        		console.log('a');
		        },
		        dblclick: function(node, e){
		        		console.log('b');
		        }
    		},
		    root: {
		    	id:'root',
		        text: '\u6574\u4E2A\u7CFB\u7EDF',
		        expanded: true,
		        children: [
		            {
		            	id:'passport',
		              text: '\u6743\u9650\u7BA1\u7406',
		              expanded: true,
	                children: [
	                    {
	                    	id:'mnProduct',
                        text: '\u4EA7\u54C1\u5B9A\u4E49',
                        leaf: true
	                    },
	                    {
	                    	id:'mnOrganization',
                        text: '\u7EC4\u7EC7\u8BBE\u5B9A',
                        leaf: true
	                    },
	                    {
	                    	id:'mnPermission',
                        text: '\u6743\u9650\u5206\u914D',
                        leaf: true
	                    }
	                ]
	            }
		        ]
		    },
		    
		    initComponent: function() {
		        this.callParent();
		    }
})